﻿// Decompiled with JetBrains decompiler
// Type: System.Web.Razor.Parser.ParserVisitorExtensions
// Assembly: System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
// MVID: 682513D6-F37E-48AC-9909-F3EE103CFF14
// Assembly location: D:\Project\Idea\无人机外网\uav\客户端工程\排查工具\bin\Release\System.Web.Razor.dll

using System.Collections.Generic;
using System.Web.Razor.Parser.SyntaxTree;

namespace System.Web.Razor.Parser
{
  /// <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Provides extension methods for parser visitor.</summary>
  public static class ParserVisitorExtensions
  {
    public static void Visit(this ParserVisitor self, ParserResults result)
    {
      if (self == null)
        throw new ArgumentNullException(nameof (self));
      if (result == null)
        throw new ArgumentNullException(nameof (result));
      result.Document.Accept(self);
      foreach (RazorError parserError in (IEnumerable<RazorError>) result.ParserErrors)
        self.VisitError(parserError);
      self.OnComplete();
    }
  }
}
